#!/usr/bin/env bash
path_current_dir=$(cd `dirname $0`; pwd)
path_parrent_dir=$(cd $path_current_dir;cd ..;pwd)
if [[ ! -d /tmp/weixin ]]; then
    mkdir -p /tmp/weixin;
fi
cp -R ../wechatcms/* /tmp/weixin/;
pushd /tmp;
zip -q -r weixin.zip ./weixin/ -x "*/\node_modules/*" -x *.git* -x *.idea* -x *.DS_Store*;
popd;
mv /tmp/weixin.zip ~/Desktop/weixin_`date +%Y-%m-%d-%H-%M-%S`.zip;

